home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17400 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.7 KB  |  63 lines

  1. Path: deadly.demon.co.uk!leo
  2. From: Leo Ponton <leo@deadly.demon.co.uk>
  3. Newsgroups: comp.lang.c++
  4. Subject: TApplication derivation - a C++ Windows newbie
  5. Date: Mon, 15 Apr 1996 19:28:52 +0100
  6. Organization: fingers
  7. Distribution: world
  8. Message-ID: <cjcQ5BAkVpcxEwto@deadly.demon.co.uk>
  9. NNTP-Posting-Host: deadly.demon.co.uk
  10. X-NNTP-Posting-Host: deadly.demon.co.uk
  11. MIME-Version: 1.0
  12. X-Newsreader: Turnpike Version 1.10 <GOXf3TlnKLZOTVuFjLKX0tojaU>
  13.  
  14. I've read the book: From C to C++ in 2 Weeks (N & O Gurewich; Sybex
  15. 1994), I've dusted off BC++ 3.1 (Installed in Win95) and I've cut my
  16. first C++ code (also my first Windows code.).
  17.  
  18. Problem:- When BC++ comes to do the linking, I  get the following
  19. warning and errors:
  20.  
  21. Linker Warning:Possible reference to undefined extern object::zero in
  22. module FIRST.CPP
  23. Linker Error:Undefined symbol tapplication::~tapplication() in module
  24. FIRST.CPP
  25. Linker Error:Undefined symbol twindowsobject::closewindow() in module
  26. FIRST.CPP
  27.  
  28. ...and so on.
  29.  
  30. The code for the class derived from the TApplication class is as
  31. follows:
  32.  
  33. class TMyApp : public TApplication
  34.  {
  35. public:
  36.         TMyApp( LPSTR AName,
  37.                 HINSTANCE hInstance,
  38.                 HINSTANCE hPrevInstance,
  39.                 LPSTR lpCmdLine,
  40.                 int nCmdShow)
  41.         :
  42.         TApplication(   AName,
  43.                         hInstance,
  44.                         hPrevInstance,
  45.                         lpCmdLine,
  46.                         nCmdShow) {};
  47.  
  48.         virtual void InitMainWindow();
  49.  
  50. };
  51.  
  52. This code is copied from the book, and is the same as the disk version
  53. supplied therein.
  54.  
  55. Is my problem one of configuration? All of the directories seem to be
  56. okay.
  57.  
  58. Help would be much appreciated.
  59. Leo Ponton
  60.  
  61. Nottingham, UK
  62. leo@deadly.demon.co.uk
  63.